package job.work.domain.common;


import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageResult implements Serializable {

    private int code;

    private List rows;//当前页结果

    private long total;//总记录数

    public PageResult(long total, List rows) {
        super();
        this.total = total;
        this.rows = rows;
    }

    public PageResult(int code,long total, List rows) {
        super();
        this.code = code;
        this.total = total;
        this.rows = rows;
    }
}
